package com.inspur.jzsxxzx.service.catalog.impl;

import com.inspur.jzsxxzx.entity.catalog.DataCatalogColumnExtendField;
import com.inspur.jzsxxzx.mapper.catalog.DataCatalogColumnExtendFieldMapper;
import com.inspur.jzsxxzx.service.catalog.DataCatalogColumnExtendFieldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataCatalogColumnExtendFieldServiceImpl implements DataCatalogColumnExtendFieldService {
    
    @Autowired
    private DataCatalogColumnExtendFieldMapper dataCatalogColumnExtendFieldMapper;
    
    @Override
    public int save(DataCatalogColumnExtendField record) {
        return dataCatalogColumnExtendFieldMapper.insert(record);
    }
    
    @Override
    public DataCatalogColumnExtendField findById(String columnId) {
        return dataCatalogColumnExtendFieldMapper.selectByPrimaryKey(columnId);
    }
    
    @Override
    public int update(DataCatalogColumnExtendField record) {
        return dataCatalogColumnExtendFieldMapper.updateByPrimaryKey(record);
    }
    
    @Override
    public int deleteById(String columnId) {
        return dataCatalogColumnExtendFieldMapper.deleteByPrimaryKey(columnId);
    }
    
    @Override
    public List<DataCatalogColumnExtendField> findAll() {
        return dataCatalogColumnExtendFieldMapper.selectAll();
    }
    
    @Override
    public List<DataCatalogColumnExtendField> findByCondition(DataCatalogColumnExtendField condition) {
        return dataCatalogColumnExtendFieldMapper.selectByCondition(condition);
    }
}